import {
  SET_STATE_COUNTDOWN, ORDERING_SUCCESS, SET_ORDER_INFO, CHANHE_ORDER_ORDERMSG
}
from '../types'

const state = {
  // token: getCookie('token') || null,
  // user: null,
  orderMsg: "",
  countdown: ""
}

const mutations = {
  [ORDERING_SUCCESS](state, action) {
    // state.token = action.token
  }, [SET_ORDER_INFO](state, order) {
    state.order = order;
  }, [CHANHE_ORDER_ORDERMSG](state, content) {
    state.orderMsg = content;
  }, [SET_STATE_COUNTDOWN](state, content) {
    state.countdown = content;
  }
}

export default {
  state,
  mutations
}
